<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle()->setSeparator(' - ');
$this->headTitle('short mind');
?>
<!DOCTYPE html>
<html>
<head>
	<?=$this->headMeta(); ?>
	<?=$this->headTitle(); ?>

   <?php echo $this->headScript()
      ->prependFile($this->baseUrl('js/general.js'),'text/javascript')
      ->prependFile($this->baseUrl('js/prettify.js'),'text/javascript')
      ->prependFile($this->baseUrl('js/jquery.wysiwyg.min.js'),'text/javascript')
      ->prependFile($this->baseUrl('js/bootstrap-tooltip.js'),'text/javascript')
      ->prependFile($this->baseUrl('js/bootstrap-progressbar.min.js'),'text/javascript')
      ->prependFile($this->baseUrl('js/bootstrap.min.js'),'text/javascript')
      ->prependFile($this->baseUrl('js/jquery-1.8.3.min.js'),'text/javascript'); ?>

	<?php
		$this->headLink()->prependStylesheet($this->baseUrl() . '/css/bootstrap-progressbar-2.3.1.min.css');
		$this->headLink()->prependStylesheet($this->baseUrl() . '/css/jquery.wysiwyg.css');
		$this->headLink()->prependStylesheet($this->baseUrl() . '/css/prettify.css');
      $this->headLink()->prependStylesheet($this->baseUrl() . '/css/docs.css');
		$this->headLink()->prependStylesheet($this->baseUrl() . '/css/bootstrap-responsive.min.css');
      echo $this->headLink()->prependStylesheet($this->baseUrl() . '/css/bootstrap.min.css');
	?>
   <style>
   body {
      padding-top: 2px; /* 60px to make the container go all the way to the bottom of the topbar */
      padding-bottom: 60px;
   }

   .container > footer p {
      text-align: center; /* center align it with the container */
   }

   section {
      min-height: 500px;
   }
   </style>
</head>
<body onload="prettyPrint()">

   <div class="navbar navbar-fixed-top navbar-inverse">
      <div class="navbar-inner">
         <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
               <span class="icon-bar"></span>
               <span class="icon-bar"></span>
               <span class="icon-bar"></span>
            </a>
            <a class="brand" href="http://code.google.com/p/short-mind/" target="blank">short mind</a>
            <div class="nav-collapse">
               <ul class="nav">
                  <li class="active">
                     <a href="<?=$this->url(array('controller' => 'index',
                         'action'=> 'index'), null, true) ?>">
                        <i class="icon-home icon-white"></i> Home</a>
                  </li>
                  <li>
                     <a href="<?=$this->url(array('controller' => 'projects',
                         'action' => 'create'), null, true) ?>">
                        <i class="icon-th icon-white"></i> New Project</a>
                  </li>
                  <li><a href="<?=$this->url(array('controller' => 'index',
                         'action' => 'about'), null, true) ?>">
                        <i class="icon-certificate icon-white"></i> About</a>
                  </li>
               </ul>
            </div><!--/.nav-collapse -->
         </div>
      </div>
   </div>

	<div class="container">

      <section>
         <div class="page-header">
            <h3><?= $this->escape($this->title); ?></h3>
         </div>

         <?=$this->flashMessages(); ?>

         <?=$this->layout()->content; ?>
      </section>

      <footer class="footer">
         <p>&copy; Open Fidias <?=date('Y') ?> |
         <a href="https://twitter.com/#!/atilacamurca">@atilacamurca</a></p>
      </footer>

	</div><!-- /container -->
</body>
</html>
